package com.nancal.activiti.service;

import org.activiti.engine.task.Task;

import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface ProcessDesignService {

    String createModel(String key, String name, String category, String descp) throws UnsupportedEncodingException;

    List<Map<String, Object>> listModel();

    String deleteModel(String modelId);

    String deployModel(String modelId) throws Exception;


    List<Task> queryTask(String id, String taskAssignee);

    void queryModelImg(String modelId, HttpServletResponse response);
    void queryModelImg2(String deploymentId, HttpServletResponse response);

    List<Map<String, Object>> listModelDeploy();

    void getFlowImgByInstanceId(String processInstanceId, OutputStream outputStream);

    String localDeployModel(String processName, String modelName);
}
